package com.hsd.znsh.pojo.input;

import com.hsd.znsh.validator.Phone;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/*
 * @auther: wangjiacai
 *
 * @create: 2018-05-02 15:08:10
 */
@Data
public class HostSetting {

    /*主机编号*/
    @NotBlank(message = "主机编号不能为空")
    private String hostSn;

    /*联系人*/
    @NotBlank(message = "联系人不能为空")
    private String contactUser;

    /*联系手机*/
    @NotBlank(message = "号码不能为空")
    @Phone(message = "号码格式不对")
    private String contactPhone;

    /*种植面积*/
    @NotNull(message = "种植面积不能为空")
    private Integer plantingArea;
}
